//
//  OrderDetailModel.h
//  ChunLaiZhuangClient
//
//  Created by zouzhisheng on 16/4/27.
//  Copyright © 2016年 CLZ. All rights reserved.
//

#import "BaseModel.h"
@class OrderDetailDataModel;
@interface OrderDetailModel : BaseModel
@property(nonatomic,strong)OrderDetailDataModel *data;
@end

@class Shipping_addressModel;
@class ExpressModel;
@interface OrderDetailDataModel : BaseModel
@property(nonatomic,copy)NSString *order_id;
@property(nonatomic,copy)NSString *order_status_id;
@property(nonatomic,copy)NSString *order_status;
@property(nonatomic,strong)Shipping_addressModel *shipping_address;
@property(nonatomic,copy)NSString *final_pay; //实付金额
@property(nonatomic,copy)NSString *date_added;
@property(nonatomic,copy)NSString *payment_time;
@property(nonatomic,copy)NSString *ship_time;
@property(nonatomic,copy)NSString *complete_time;
@property(nonatomic,copy)NSString *payment_method;  //支付方式
@property(nonatomic,copy)NSString *shipping_method; //快递方式
@property(nonatomic,strong)ExpressModel *express;  //最近一条快递信息（后台添加快递单号才有，否则为空对象）
@property(nonatomic,copy)NSString *bee; //小蜜蜂链接
@property(nonatomic,copy)NSArray *products;  //商品
@property(nonatomic,copy)NSArray *totals;  //金额计算详情
@property(nonatomic,copy)NSArray *histories;  //订单历史
@end


@interface Shipping_addressModel : BaseModel
@property(nonatomic,copy)NSString *firstname;
@property(nonatomic,copy)NSString *telephone;
@property(nonatomic,copy)NSString *address;
@end


@interface ExpressModel : BaseModel
@property(nonatomic,copy)NSString *date_added;  //最近一条时间
@property(nonatomic,copy)NSString *status;  //最近位置
@end


@interface TotalsModel : BaseModel
@property(nonatomic,copy)NSString *title;
@property(nonatomic,copy)NSString *text;
@end

@interface HistoriesModel : BaseModel
@property(nonatomic,copy)NSString *text;
@end


@interface OrderProductModel : BaseModel
@property(nonatomic,copy)NSString *name;
@property(nonatomic,copy)NSString *model;  //型号
@property(nonatomic,copy)NSString *image;
@property(nonatomic,copy)NSString *price;  //单价
@property(nonatomic,copy)NSString *option; //选项（已格式化为字符串）
@property(nonatomic,copy)NSString *quantity;
@property(nonatomic,copy)NSString *total;  //总金额（数量*单价）
@end
